package org.pearl.oauth2.authorizationserverdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 认证记录
 * </p>
 *
 * @author td
 * @since 2021-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OauthApprovals对象", description="认证记录")
public class OauthApprovals implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户名")
    @TableField("userId")
    private String userId;

    @ApiModelProperty(value = "客户端名")
    @TableField("clientId")
    private String clientId;

    @ApiModelProperty(value = "授权范围")
    private String scope;

    @ApiModelProperty(value = "回调状态参数")
    private String status;

    @ApiModelProperty(value = "过期具体时间")
    @TableField("expiresAt")
    private Date expiresAt;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;


}
